package com.bkgy.controller.technology.entity.dto;

import lombok.Data;

@Data
public class FailReasonNum implements Comparable<FailReasonNum> {
    private String reason;
    private int num;

    public FailReasonNum() {
    }

    public FailReasonNum(String reason, int num) {
        this.reason = reason;
        this.num = num;
    }

    @Override
    public int compareTo(FailReasonNum failReasonNum) {
        return this.num > failReasonNum.num ? -1 : 1;
    }
}
